package homework;

import java.util.Random;

public class Dislocate {
	public static void main(String[] args){
		int[] arr={1,2,3,4,5};
		int[] arr2=new int[5];
		int temp=0;
		Random rd=new Random();
		for(int x=0;x<arr.length;x++){
			int i=rd.nextInt(arr.length);
			temp=arr[x];
			arr[x]=arr[i];
			arr[i]=temp;
		}
		for(int i=0;i<arr.length;i++){
			System.out.println(arr[i]);
		}
	}
}
